const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("../views/index"),
    redirect: "/externalData",
  },
  {
    path: "/",
    name: "index",
    component: () => import("../views/index"),

    children: [
      {
        path: "externalData",
        name: "externalData",
        component: () => import("../views/externalData"),
        meta: {
          name: "外部数据录入",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "externalEdit",
        name: "externalEdit",
        component: () => import("../views/externalEdit"),
        meta: {
          name: "外部数据编辑",
          keepAlive: true, // 需要缓存
        },
      },
      {
        path: "markCreation",
        name: "markCreation",
        component: () => import("../views/markCreation"),
        meta: {
          name: "标签制作",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileMark",
        name: "fileMark",
        component: () => import("../views/fileMark"),
        meta: {
          name: "数据置标",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "archivingManag",
        name: "archivingManag",
        component: () => import("../views/archivingManag"),
        meta: {
          name: "归档任务管理",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "archivingManagP",
        name: "archivingManagP",
        component: () => import("../views/archivingManagP"),
        meta: {
          name: "归档任务管理",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "syExternalData",
        name: "syExternalData",
        component: () => import("../views/syExternalData"),
        meta: {
          name: "试验数据录入",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "syExternalEdit",
        name: "syExternalEdit",
        component: () => import("../views/syExternalEdit"),
        meta: {
          name: "试验数据编辑",
          keepAlive: true, // 需要缓存
        },
      },
      {
        path: "syFileMark",
        name: "syFileMark",
        component: () => import("../views/syFileMark"),
        meta: {
          name: "数据置标审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "syFileMarkP",
        name: "syFileMarkP",
        component: () => import("../views/syFileMarkP"),
        meta: {
          name: "数据置标审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "archiveInfo",
        name: "archiveInfo",
        component: () => import("../views/archiveInfo"),
        meta: {
          name: "归档信息管理",
          keepAlive: true, // 不需要缓存
        },
      },
      {
        path: "markCreationEdit",
        name: "markCreationEdit",
        component: () => import("../views/markCreationEdit"),
        meta: {
          name: "标签管理操作",
          keepAlive: true, // 需要缓存
        },
      },
      {
        path: "markCreationeExamine",
        name: "markCreationeExamine",
        component: () => import("../views/markCreationeExamine"),
        meta: {
          name: "标签审核",
          keepAlive: false, // 需要缓存
        },
      },
      {
        path: "markCreationeExamineP",
        name: "markCreationeExamineP",
        component: () => import("../views/markCreationeExamineP"),
        meta: {
          name: "标签审核",
          keepAlive: false, // 需要缓存
        },
      },
      {
        path: "openPdf",
        name: "openPdf",
        component: () => import("../components/openPdf"),
        meta: {
          name: "pdf",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "specification",
        name: "specification",
        component: () => import("../views/specification"),
        meta: {
          name: "标准规范管理",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "specificationUp",
        name: "specificationUp",
        component: () => import("../views/specificationUp"),
        meta: {
          name: "标准规范上传",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "Integration",
        name: "Integration",
        component: () => import("../views/Integration"),
        meta: {
          name: "整编库管理",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "IntegrationType",
        name: "IntegrationType",
        component: () => import("../views/IntegrationType"),
        meta: {
          name: "整编库类型管理",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "IntegrationEdit",
        name: "IntegrationEdit",
        component: () => import("../views/IntegrationEdit"),
        meta: {
          name: "整编库操作",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "IntegrationSh",
        name: "IntegrationSh",
        component: () => import("../views/IntegrationSh"),
        meta: {
          name: "整编库审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "IntegrationShP",
        name: "IntegrationShP",
        component: () => import("../views/IntegrationShP"),
        meta: {
          name: "整编库审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileIntegration",
        name: "fileIntegration",
        component: () => import("../views/fileIntegration"),
        meta: {
          name: "文件整编",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileIntegrationSh",
        name: "fileIntegrationSh",
        component: () => import("../views/fileIntegrationSh"),
        meta: {
          name: "文件整编审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileIntegrationShP",
        name: "fileIntegrationShP",
        component: () => import("../views/fileIntegrationShP"),
        meta: {
          name: "文件整编审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "IntegrationLibrary",
        name: "IntegrationLibrary",
        component: () => import("../views/IntegrationLibrary"),
        meta: {
          name: "整编库资源展示",
          keepAlive: false, // 不需要缓存
        },
      },

      {
        path: "fileType",
        name: "fileType",
        component: () => import("../views/fileType"),
        meta: {
          name: "文件类型",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileUplist",
        name: "fileUplist",
        component: () => import("../views/fileUplist"),
        meta: {
          name: "文件上传",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fielDetail",
        name: "fielDetail",
        component: () => import("../views/fielDetail"),
        meta: {
          name: "文件详情",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileUpSh",
        name: "fileUpSh",
        component: () => import("../views/fileUpSh"),
        meta: {
          name: "文件审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileUpShP",
        name: "fileUpShP",
        component: () => import("../views/fileUpShP"),
        meta: {
          name: "文件审核",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "nullData",
        name: "nullData",
        component: () => import("../views/nullData"),
        meta: {
          name: "网页未开发完毕",
          keepAlive: false, // 不需要缓存
        },
      },
      {
        path: "fileSearch",
        name: "fileSearch",
        component: () => import("../views/fileSearch"),
        meta: {
          name: "文本展示",
          keepAlive: false, // 不需要缓存
        },
      },
    ],
  },
];
export default routes;
